package com.priv.mapper;

import com.priv.domain.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : 十一
 * @data : 15:32 2022/12/3
 */
public interface RoleMapper1 {

    @Select("select * from user_role ur, role r where ur.roleId = r.id and ur.userId = #{uid}")
    public List<Role> findByUid(int id);
}
